/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bhatni.messageprocessor;

import java.util.Map;

/**
 *
 * @author Viren
 */
public interface Message {

    /**
     * @return the body
     */
    Object getBody();

    /**
     * @return the header
     */
    Map<String, Object> getHeader();


    Object getHeader(String name);
    void setHeader(String name, Object value);
    

    /**
     * @param body the body to set
     */
    void setBody(Object body);

    /**
     * @param header the header to set
     */
    void setHeader(Map<String, Object> header);

}
